<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    {{info}}
    <input type="button" value="按钮" v-on:click="f()">
    <input type="button" value="按钮" @click="f()">
    <input type="text" v-model="name">
    <input type="button" value="当初文本框" @click="f1()">
</div>
<script src="js/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{
            info:"事件绑定",name:""
        },
        methods:{
          f(){
              alert("按钮被点了")
          },
          f1(){
              alert(v.name);
          }
        }
    })
</script>
</body>
</html>